#ifndef AST_DECLARATIONS_INIT_DECLARATOR_LIST_H
#define AST_DECLARATIONS_INIT_DECLARATOR_LIST_H


#include "../ASTNode.h"


class InitDeclarator;

/*
C99  6.7
init-declarator-list:
init-declarator
init-declarator    ,    init-declarator
*/
class InitDeclaratorList : public ASTNode
{
protected:
	InitDeclaratorList(void)
		: ASTNode(ASTNode::init_declarator_list){};
public:
	InitDeclaratorList(InitDeclarator * pDeclarator, InitDeclaratorList *pDecList = NULL)
		: ASTNode(ASTNode::init_declarator_list)
		, m_pDeclarator(pDeclarator)
		, m_pDeclaratorList(pDecList){};


	virtual ~InitDeclaratorList(void);

	virtual void					codeGen();

protected:
	InitDeclaratorList *			m_pDeclaratorList;
	InitDeclarator *				m_pDeclarator;
};



#endif

